﻿package com.dykj.platform.framework.dao.support;

/**
 * @Title: DYKJ Platform
 * @Description: 数据库操作方言
 * @Copyright: Copyright (c) 2008
 * @Company: DYKJ
 * @author jit@dykj.cn
 * @version 1.0
 */
public interface Dialect {
	/**
	 * 获取分页语句
	 * 
	 * @param sql
	 * @param hasOffset
	 *            是否有偏移
	 * @return
	 */
	public abstract String getLimitString(String s, boolean flag);

	/**
	 * 获取分页语句
	 * 
	 * @param sql
	 * @return
	 */
	public abstract String getLimitString(String s);

	/**
	 * 获取 sequence 语句
	 * 
	 * @param sequenceName
	 * @return
	 */
	public abstract String getSelectSequenceNextValString(String s);

	/**
	 * 获取 sequence SQL语句
	 * 
	 * @param sequenceName
	 * @return
	 */
	public abstract String getSequenceNextValString(String s);
}
